/*
 * @Author: 张仁会 28396543@qq.com
 * @Date: 2022-09-01 14:27:18
 * @LastEditors: 张仁会 28396543@qq.com
 * @LastEditTime: 2022-09-03 11:37:04
 * @FilePath: \store_system\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '../uitls/index'

// 获取用户
export const getUser = (params) => {
  return request({
    url: '/getUser',
    method: 'get',
    headers: {},
    params
  })
}
// 修改用户
export const setUser = (data) => {
  return request({
    url: '/setUser',
    method: 'post',
    headers: {},
    data
  })
}
// 获取商品
export const getStock = (params) => {
  return request({
    url: '/getStock',
    method: 'get',
    headers: {},
    params
  })
}
// 修改商品
export const setStock = (data) => {
  return request({
    url: 'setStock',
    method: 'post',
    headers: {},
    data
  })
}
// 添加商品
export const addStock = (data) => {
  return request({
    url: 'addStock',
    method: 'post',
    headers: {},
    data
  })
}